import config from "@/config"
import http from "@/utils/request"

export default {
	user: {
		info: {
			url: `${config.API_URL}/adminapi/auth.admin/mySelf`,
			name: "获取当前管理员信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		editSelf: {
			url: `${config.API_URL}/adminapi/auth.admin/editSelf`,
			name: "修改当前管理员信息",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		editPassword: {
			url: `${config.API_URL}/adminapi/auth.admin/editPassword`,
			name: "修改密码",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
	log:{
		lists: {
			url: `${config.API_URL}/adminapi/setting.system.log/lists`,
			name: "获取操作日志",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    unBindAll: {
        url: `${config.API_URL}/adminapi/dept.staff/batchUnbinding`,
        name: "批量解绑",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
}
